<?php
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
	require_once 'include/inc.config.php';
	require_once WACT_ROOT.'common.inc.php';
	require_once WACT_ROOT.'controller/pathinfo.inc.php';

    require_once APP_CTRL_ROOT . 'adm/admin_controller.php';

	class MyAdminRootController extends RootAdminController {

		function MyAdminRootController() {
        	parent::RootAdminController();

			$this->addChild('index',   new Handle(APP_CTRL_ROOT . 'adm/inbox/events/index.page.php|EventsIndexPage'));
			$this->addChild('edit',   new Handle(APP_CTRL_ROOT . 'adm/calendar/edit.page.php|EventEditPage'));
			$this->addChild('delete',   new Handle(APP_CTRL_ROOT . 'adm/calendar/delete.page.php|EventDeletePage'));
			$this->addChild('create',   new Handle(APP_CTRL_ROOT . 'adm/calendar/create.page.php|EventCreatePage'));
    		$this->addChild('view',   new Handle(APP_CTRL_ROOT . 'adm/inbox/events/view.page.php|EventViewPage'));
    		$this->addChild('publish',   new Handle(APP_CTRL_ROOT . 'adm/inbox/events/publish.page.php|EventPublishPage'));     //reserved for future use
    		$this->addChild('deny',   new Handle(APP_CTRL_ROOT . 'adm/inbox/events/deny.page.php|EventDenyPage'));   //reserved for future use
    		$this->addChild('viewnext',   new Handle(APP_CTRL_ROOT . 'adm/inbox/events/viewnext.page.php|EventViewNextPage')); // reserved for future use

			$this->setDefaultChild('index');

		}

	}

	$Front =& new MyAdminRootController();
	$Front->start();


?>